<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>客户联系人列表</title>
<%@include file="/skins/jsp/loadCss.jsp"%>
</head>
<body>
	<%@include file="/skins/jsp/loadJquery.jsp"%>
	<h2>客户联系人列表</h2>
	<p class="ch-form-actions" style="float: right;margin-bottom: 5px;">
		<s:a action="findCustLink" namespace="/contract"
			cssClass="ch-btn ch-btn-small">
			<s:param name="ctId" value="ctId">
			</s:param>
			新增客户联系人</s:a>
	</p>
	<table class="ch-datagrid">
		<thead>
			<tr>
				<th scope="row" width="4%">序号</th>
				<th width="20%">联系人名称</th>
				<th width="20%">所在部门</th>
				<th width="10%">电话</th>
				<th width="10%">手机</th>
				<th width="10%">传真</th>
				<th width="10%">E-MAIL</th>
				<th width="20%">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="custLinkList" status="st">
				<tr <s:if test="#st.isEven()">style="BACKGROUND: #f8f8f8"</s:if>>
					<td><s:property value="%{#st.count}" /></td>
					<td><s:property value="ctLName" /></td>
					<td><s:property value="ctLPart" /></td>
					<td><s:property value="ctLPhoto" /></td>
					<td><s:property value="ctLMobile" /></td>
					<td><s:property value="ctLFax" /></td>
					<td><s:property value="ctLMail" /></td>
					<td><s:a action="findCustLink" namespace="/contract"
							cssClass="ch-btn ch-btn-small">
							<s:param name="ctLId" value="ctLId"></s:param>
							<s:param name="ctId" value="ctId"></s:param>修改客户联系人</s:a>
						<button class="ch-btn ch-btn-small"
							onclick="delCue('<s:property value="ctLId" />','<s:property value="ctId" />')">删除客户联系人</button>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<script type="text/javascript">
		var delCue = function(ctLId,ctId){if(confirm("是否要删除此条记录！"))delCtLink(ctLId,ctId)},delCtLink = function(ctLId,ctId){window.location.href="<%=request.getContextPath()%>/contract/delCustLink.action?ctLId="+ctLId+"&ctId="+ctId};
	</script>
</body>
</html>